-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] Only show the VBBA payment option for expense reports #31841
Conversation
if (isExpenseReport) { | ||
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.VBBA]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not supposed to be added as an option in case of non expense reports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB: Can we update like this so 2 options can never be shown together in the future
if (isExpenseReport) {
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.VBBA]);
} else if (currency === CONST.CURRENCY.USD) {
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.EXPENSIFY]);
}
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.ELSEWHERE]);
This comment was marked as off-topic.
This comment was marked as off-topic.
Reviewer Checklist
Screenshots/VideosiOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movweb2.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think #31837 can be fixed in separate PR though it's similar but different root cause.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ports [CP Staging] Only show the VBBA payment option for expense reports (cherry picked from commit eb5de8e)
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 1.4.3-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
@luacmartins it's different bug - #31837 |
I'm not sure that I follow. I can still see 2 options |
Ah I see, thanks for clarifying! |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.3-11 🚀
|
Details
The language for paying with bank account as a business or with a Wallet for IOU is the same -
Pay With Expensify
. Now users have option to pay the IOU reports with business bank account too which creates a workspace and we are showing two same buttons for them, which should not be the caseFixed Issues
$ #31829
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
tested on web, changes are platform agnostic
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop